from transformers import pipeline

model_path = r"D:\models\Qwen3\Qwen3-1.7B"
pipe = pipeline("text-generation", model=model_path, device_map="auto")

print(pipe("用一句话解释Qwen3是什么？", max_new_tokens=100)[0]["generated_text"])
